<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#table1
			{
				border: 1px solid #000000;
				border-collapse: collapse;
			}
			
			#table1 td
			{
				border: 1px solid #000000;
			}
			
		</style>
	</head>
	<body>
		<table id="table1">
			<tr>
				<td>学号</td>
				<td>姓名</td>
			</tr>
			<tr>
				<td>1</td>
				<td>张三</td>
			</tr>
			<tr>
				<td>2</td>
				<td>张三</td>
			</tr>			
		</table>
		<br />
		<table border="1" cellpadding="0" cellspacing="0">
			<tr>
				<td>学号</td>
				<td>姓名</td>
			</tr>
			<tr>
				<td>1</td>
				<td>张三</td>
			</tr>
			<tr>
				<td>2</td>
				<td>张三</td>
			</tr>			
		</table>
		
		<h1>用js输出如下表格:</h1>
		<img src="练习2.png"  width="500" height="400" />
	</body>
</html>
